package com.whfc.mach.param;

import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description:
 * @author: xugcheng
 * @version: 1.0
 * @date: 2021-07-19 19:27
 */
@Data
public class MachCmdParam implements Serializable {

    /**
     * 设备ID
     */
    @NotNull
    private Integer machId;

    /**
     * 指令
     */
    @NotNull
    private Integer subCmd;

    /**
     * 牵引速速
     */
    @DecimalMax(value = "5", message = "牵引速度不能大于5")
    private Double speed;
}
